<?php
namespace app\index\controller;

use think\Db;

class Index
{
    public function index()
    {
        $callback = $_GET['callback'];
        $data = [
            'code' => 200,
            'data' => []
        ];
        $data['data'] = Db::table('tp_news')->where('cid',68)->order('id','desc')->limit(10)->select();
        echo $callback."(".json_encode($data).")";
    }
}
